#ifndef USERS_H
#define USERS_H
#include"part1.h"
#ifdef __cplusplus
extern "C" {  // 仅在 C++ 中生效
#endif
struct users* findUserByUsername(struct users* head, const char* username);
struct users* findUserByPhoneNumber(struct users* head, const char* phonenumber);
int addUserToFile_1(char*a,char*b,char*c);
int addUserToFile_2(char*a,char*b,char*c);
int addUserToFile_3(char*a,char*b,char*c,int d,int e);
int deleteUser(Users** head, const char* target_username);
int saveListToFile(Users* head, const char* filename);
struct users* modifyUsersMembers(Users* head, char* username,int choice, char* new_value_str);
int saveUsersToFilel(Users* head, const char* filename);
//void lfreeUsers(Users* head);
#ifdef __cplusplus
}
#endif
#endif // PART1_H

